${page.setTitle("旅行就医 | 订单列表")}
<div class="gp-rms-orderlist" id="g-cfg" data-fo-totop="0">
	<div class="order-list">
		<div class="g-tips-box-error tips-box hide" id="errorTipsDv">
			<span class="gi gi-error"></span> <span class="content"></span>
		</div>
		<div class="g-tips-box-succ tips-box hide" id="succTipsDv">
			<span class="gi gi-succ"></span> <span class="content"></span>
		</div>
		<!--
		<form class="g-clear"  action="${rmsServer}/my/orderlist" id="orderFilter">
			<input type="hidden" value="1" name="pageIndex">
			<div class="check g-left">
				<label> 按状态筛选： </label> 
				<select name="orderState">
					<option value="0">全部</option>
					<option value="1">待支付</option>
					<option value="2">已支付</option>
				</select>
			</div>
			<div class="picker g-left">
				<label> 订单时间： </label>
				<span class="g-datepicker"> 
					<input type="text" value="" class="text" name="DateBegin" id="startTime" >
					<span class="ui-datepicker-trigger"></span>
				</span> 
				<span>-</span>
				<span class="g-datepicker"> 
					<input type="text" value="" class="text" name="DateEnd" id="endTime">
					<span class="ui-datepicker-trigger"></span>
				</span>
			</div>
			<div class="action g-left">
				<a id="sureBt" href="#" class="gb gb-grey2"> 
					<span class="gb-right"> 
						<span class="gb-text">确定</span>
					</span>
				</a>
			</div>
		</form>
		-->
		<table cellspacing="0" cellpadding="0">
			<colgroup>
				<col width="100px;">
				<col width="100px;">
				<col width="120px;">
				<col width="100px;">
				<col width="50px;" >
				<col width="80px;">
				<col width="100px;">
				<col width="50px;">
				<col width="82px;">
			</colgroup>
			<thead>
				<tr><!-- class="text-left" class="text-right" -->
					<th>就诊日期</th>
					<th>医院名称</th>
					<th>出发日期</th>
					<th>出发城市</th>
					<th>交通工具</th>
					<th>预定房间数</th>
					<th>是否需要陪诊</th>
					<th>订单状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<#if orders??>
			        <#list orders as order>
					      <tr >
							<td><#if order.doctorTime??>${order.doctorTime?string("yyyy-MM-dd")} </#if></td>
							<td title="${order.hospitalName}">
								${order.hospitalName}
							</td>
							<td>
								<#if order.trainTakeoffTime?? || order.flightTakeoffTime ??>
								${webUtil.getTakeOffTime(order.trainTakeoffTime,order.flightTakeoffTime)?string("yyyy-MM-dd HH:mm")}</td>
								</#if>
							<td>${order.dCity}</td>
							<td><#if order.flightCount &gt; 0>飞机</#if>  <#if order.trainCount &gt; 0>火车</#if></td>
							<td>${order.roomCount}</td>
							<!--是否需要陪诊-->
							<td>
								<#if order.isAccompany>
									<#if order.isAccompany=='yes'>
										需要
									<#else>
										不需要
									</#if>
								</#if>
							</td>
							<td>${webUtil.getOrderStatus(order.status)}<br/>
		 						<#if order.status!="paid"&&order.status!="canceling"&&order.status!="cancel"&&order.status!="success">
									<a class="gbs gbt-orange" href="${rmsServer}/alipay/payment/init?orderid=${order.id}" target="_blank">去支付</a></td>
								</#if>
							<td>
							    <!--
							    <a href="javascript:;" class="gbs gbt-gray">取消</a><br/>
							    -->
								<a href="${guahaoServer}/my/lxjy/orderdetail?orderid=${order.id}" target="_blank">详情</a>
							</td>
						</tr>
			        </#list>
			     </#if>
				
			</tbody>
		</table>
		<#--以上是页面独有部分-->
		
		<#import "home/views/pager2.ftl" as q>
			<#if (query.totalRecord)??>
					<@q.pager pageIndex=query.pageIndex pageSize=query.pageSize recordCount=query.totalRecord toURL="${rmsServer}/my/orderlist?orderState=${orderState}"/>
		    </#if>
	</div>
</div>